#define _CRT_SECURE_NO_WARNINGS 1
/*
#include <stdio.h>
int main() 
{
	//char a = 177;//-128--127
	////00000000000000000000000010000000
	////01111111111111111111111101111111
	////01111111111111111111111110000000
	//printf("%u", a);
	int i = -20;
	unsigned j = 10;
	//10000000000000000000000000010100  i
	// 
	//00000000000000000000000000001010
	printf("%d", i + j);

}*/
/*
1

1 1

1 2 1

1 3 3 1
*/
#include <stdio.h>
int main()
{
	int i;
	int j;
	int n = 10;
	int arr[10][10];
	for (i = 0; i < n; i++)
	{
			arr[i][i] = arr[i][0]= 1;
	}
	for (i = 2; i < n; i++)
	{
		for (j = 1; j < i; j++)
		{
			arr[i][j] = arr[i - 1][j - 1] + arr[i - 1][j];
		}
		
	}
	for (i = 0; i < n; i++)
	{
		for (j = 0; j <=i; j++)
		{
			printf("%-2d ", arr[i][j]);
		}
		printf("\n");
	}


















}